#!/bin/sh

# build library file
g++ -c -O3 buddy.cpp -o buddy.o -Wno-pointer-arith
ar rcs libbuddy.a buddy.o
rm buddy.o

# compile using library
g++ -static -O3 main.cpp simulator.cpp -pthread -L. -lbuddy

# for debug
#g++ -g main.cpp buddy.cpp simulator.cpp -pthread -o debug.out -Wno-pointer-arith
